package test04.sync.test06;

/**
 *
 * 多线程模拟银行同时取钱
 * @Author lzp
 * @Date 2024-03-21
 */
public class Test {
    public static void main(String[] args) {
        Account account = new Account(5000);

        BankThread b1 = new BankThread(account,"老公",3000);
        BankThread b2 = new BankThread(account,"老婆",3000);

        b1.start();
        b2.start();
    }
}
